package xin.marcher.module.search.service;

import xin.marcher.module.common.core.PageResult;
import xin.marcher.module.search.domain.dto.CompletionSearchWordDTO;
import xin.marcher.module.search.domain.dto.CompletionSearchWordResultDTO;
import xin.marcher.module.search.domain.request.CompletionSearchWordRequest;
import xin.marcher.module.search.domain.request.QueryCompletionSearchWordPageRequest;

import java.io.IOException;

/**
 *
 */
public interface CompletionSearchWordService {

    /**
     * 保存补全词
     */
    CompletionSearchWordResultDTO saveCompletionSearchWord(CompletionSearchWordRequest request) throws IOException;

    /**
     * 查询补全词
     */
    PageResult<CompletionSearchWordDTO> listCompletionSearchWordPage(QueryCompletionSearchWordPageRequest request) throws IOException;
}
